class BaseResult:

    def __init__(self):
        self.result = None

    def result_dict_put(self, key, value):
        if self.result is None:
            self.result = {}
        self.result[key] = value
        return True

    def result_list_add(self, info):
        if self.result is None:
            self.result = []
        self.result.append(info)
        return True

    def result_dict_list_add(self, key, value):
        if self.result is None:
            self.result = {}
        if key not in self.result.keys():
            self.result[key] = []
        self.result[key].append(value)
        return True
